<?php
/**
 * img.php
 * 
 * @author: Skiychan <developer@zzzzy.com>
 * @created: 2015/1/29
 * @modified:
 */

$id = isset($_GET['id']) ? (int)$_GET['id'] : 1;

$imgs = array();
$url = "http://127.0.0.1/git/pChart2.1.4/test4.php?id=".$id;
//$imgs['line'] = file_get_contents($url);
/*
foreach ($imgs as $key => $value) {
    echo "<img src='{$value}' alt='{$key}' />";
}
*/

echo "<img src='{$url}' alt='line' /><br />";

echo "<img src='{$url}&type=bar' alt='bar' /><br />";